﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Site.Models.Message>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ReadMessage
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>ReadMessage</h2>

<fieldset>
    <legend>Message</legend>

    <div class="display-label">Sender</div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.Sender) %>
    </div>



    <div class="display-label">Subject</div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.Subject) %>
    </div>

    <div class="display-label">Body</div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.Body) %>
    </div>

    <div class="display-label">SentDate</div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.SentDate) %>
    </div>

</fieldset>
<p>

    <%: Html.ActionLink("Supprimer", "Delete", new { id=Model.MessageId }) %> |
    <%: Html.ActionLink("Boite de réception", "Index") %>
</p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
